
/**
 * 自定义管道：尼玛兽
 */

import {Pipe, PipeTransform} from '@angular/core';

@Pipe({name:'nima'})
export class NimaPipe implements PipeTransform{
  transform(value: string, ...args: any[]) {
    let retn = "尼玛兽队——"+value;
    for (let i = 0;i<args.length;i++){
      retn = retn + "-->尼玛兽"+i+"号:"+args[i].toString();
    }
    return retn;
  }
}
